package com.xxh.basecrudframework.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@ApiModel(value="用户",description="用户")
public class User extends BaseEntity<User> implements java.io.Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户id")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;


    @ApiModelProperty(value = "用户名（账号）")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "权限（1：管理员，0：普通用户）")
    private String roleId;

//    @TableField(fill = FieldFill.INSERT)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
//    @ApiModelProperty(value = "创建时间")
//    private String createTime;
}
